use warnings;
use Inline C;
use Test::More 'no_plan';

is(init_t(), 0, 'successfully initialized the mac queue.');
is(push_t(0), 0, 'successfull added a buffer whose length is 0.');
is(push_t(1), 0, 'successfull added a buffer whose length is 1.');
is(push_t(2), 0, 'successfull added a buffer whose length is 2.');
is(push_t(3), 0, 'successfull added a buffer whose length is 3.');
is(push_t(4), 0, 'successfull added a buffer whose length is 4.');
is(push_t(5), 0, 'successfull added a buffer whose length is 5.');
is(push_t(6), 0, 'successfull added a buffer whose length is 6.');
is(push_t(7), 0, 'successfull added a buffer whose length is 7.');
is(push_t(8), 0, 'successfull added a buffer whose length is 8.');
is(push_t(9), 0, 'successfull added a buffer whose length is 9.');

is(pop_t(0), 0, 'successfull deleted a buffer whose length is 0.');
is(pop_t(1), 0, 'successfull deleted a buffer whose length is 1.');
is(pop_t(2), 0, 'successfull deleted a buffer whose length is 2.');
is(pop_t(3), 0, 'successfull deleted a buffer whose length is 3.');
is(pop_t(4), 0, 'successfull deleted a buffer whose length is 4.');
is(pop_t(5), 0, 'successfull deleted a buffer whose length is 5.');
is(pop_t(6), 0, 'successfull deleted a buffer whose length is 6.');
is(pop_t(7), 0, 'successfull deleted a buffer whose length is 7.');
is(pop_t(8), 0, 'successfull deleted a buffer whose length is 8.');
is(pop_t(9), 0, 'successfull deleted a buffer whose length is 9.');
is(pop_t(9), -1, 'queue is empty.');

__END__
__C__

#include "../../../../mac/mac_queue.h"
#include "../../../../mac/list.c"
#include "../../../../mac/mac_queue.c"
#include "../../../../mac/buf.c"
#include "../../../../mac/mem.c"
#include "mac_queue_test.c"

int init_t()
{
    return init_test();
}

int push_t(int length)
{
    return push_test(length);
}

int pop_t(int length)
{
    return pop_test(length);
}


